<template>
  <div>
    <van-row>
      <van-col span="4"><van-icon name="arrow-left" @click="$router.go(-1)"/></van-col>
      <van-col span="10" offset="6">砍价列表</van-col>
    </van-row>
    <discount :list="list"></discount>
  </div>
</template>

<script>
import discount from '../home/discount';
export default {
    components:{discount},
  data() {
    return {
        list:[],
    };
  },
  created() {},
  mounted() {
      this.getList()
  },
  methods: {
      getList(){
           this.$axios.get('https://api.it120.cc/small4/shop/goods/kanjia/list').then((res)=>{
               this.list = res.data.goodsMap;
           })
      }
  },
  computed: {},
};
</script>

<style scoped>
.van-row{
    width: 100%;
    height: 50px;
    line-height: 50px;
    border-bottom: 1px solid #f0f0f0;
}
</style>
